<?php if (!defined('SHUIPF_VERSION')) exit(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "/www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="/www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<link href="favicon.ico" rel="shortcut icon" />
	<link rel="canonical" href="{$config_siteurl}" />
	<title>{$cname} - <if condition=" isset($SEO['title']) && !empty($SEO['title']) ">{$SEO['title']}</if>{$SEO['site_title']}</title>
	<meta name="description" content="{$SEO['description']}" />
	<meta name="keywords" content="{$SEO['keyword']}" />
	<link href="{$config_siteurl}statics/nhjhouse/css/style.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="{$config_siteurl}statics/nhjhouse/js/jquery.min.js,autocomplete.js,jquery.lazyload.js,jquery.kinslideshow.js,page.js,ac.js,soso.js,index.js"></script>
	<script type="text/javascript">
		$(document).ready(function () {
        	$("#nav_ul>li").eq({$cid}).find('a').addClass("menu_a").siblings().removeClass("menu_a");
    	}); 
	</script>
</head>
<body>
<template file="Buy/header.php"/>
<div class="wrap">
	<div class="clearbox"></div>

	<div class="tuangou">
		<h3>今日团购</h3>
		<ul>
			<li>
				<a href="/">全部</a>
			</li>
			<li>
					<a href="{:U('Buy/Goods/listGoods',array('cid'=>1))}" >买新房</a>
				</li>
				<li>
					<a href="{:U('Buy/Goods/listGoods',array('cid'=>2))}" >二手房租售</a>
				</li>
		</ul>
		<span class="more" >
			<a href="javascript:void(0);">更多</a>
		</span>
	</div>

	<ul class="p_list clearfix">
			<volist name="list" id="vo">
		<li >
			<a href="{$vo.goodsurl}" target="_blank">
				<img src="{$vo.pic}" width="310" height="205" />
			</a>
			<h4>
				<a href="{$vo.goodsurl}" title="{$vo.title}" target="_blank">{$vo.title|str_cut=###,70}...</a>
			</h4>
			<dl class="p_box">
				<dt>
					优惠价： <em>¥{$vo.nowprice}</em>
					<a href="{$vo.goodsurl}" class="button" target="_blank">我要看看</a>
				</dt>
				<dd>
					时间:{$vo.starttime|date="Y-m-d",###} 至 {$vo.endtime|date="Y-m-d",###}
					<span>
						已有 <em>
						{$vo.attention}
					</em>
						人关注
					</span>
				</dd>
			</dl>
		</li>
	</volist>
	</ul>

	<div class="clearbox"></div>

	<form name="selectPageForm" action="" method="get">

		<div class="page">
			{$page}

		</div>
	</form>

<template file="Buy/footer.php"/>

</div>
<script language="javascript" type="text/javascript">
function $ge(elementid) {
	//alert(elementid);
	return document.getElementById(elementid);
}

function setTabFocus(name,cursel,n,onSt,offSt){
	for(i=1;i<=n;i++){
		var menu=$ge(name+i);
		var con=$ge("con_"+name+"_"+i);
		menu.className=i==cursel? onSt:offSt;
		con.style.display=i==cursel?"block":"none";
	}
}
</script></body>
</html>